#ifndef LAUNCHER_H
#define LAUNCHER_H

#include <QtGui/QMainWindow>
#include "GeneratedFiles/ui_launcher.h"
#include "GeneratedFiles/ui_cameraposition.h"
#include "myFramework.h"
#include "App/AppBase.h"

class MyGLWidget;
class QtLogger;

class Launcher : public QMainWindow
{
	Q_OBJECT
public:
	Launcher(QWidget *parent = 0, Qt::WFlags flags = 0);
	virtual ~Launcher();

  void Enable(bool e = true);

  RayFrame::FrameBase* GetFrame();
protected:
	void setupSignal();
private:
	MyGLWidget  *glWidget;
  QDialog     *dlgCameraPosition;
  QtLogger    *logger;

	Ui::LauncherClass ui;
  Ui_DlgCameraPosition uiDlg;
private slots:
	void on_actionExit_triggered();
  void on_actionSet_camera_position_triggered();
  void on_actionLogHigher_triggered();
  void on_actionLogLower_triggered();
  void on_actionLogNormal_triggered();
  void on_comboBoxLogLevel_currentIndexChanged(QString str);
  void on_pushButtonConsoleEnter_clicked();

  // camera position dialog
  void on_camera_position_cancel();
  void on_camera_position_ok();
  void on_camera_position_reset();
};

#endif // LAUNCHER_H
